package com.qs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qs.model.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 前后台公告表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-03-23
 */
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {

    /**
     * 获取首页公告数据
     * @return
     */
    @Select("select content from qs_notice where flag = '前台'")
    List<String> findIndexNotices();
}
